<?php

namespace App\Exports;

use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\FromCollection;

class TemperatureExport implements FromCollection
{
    /**
     * Author: Albert3306
     * Date: 2020/7/31
     * @param array $data
     * @return Collection
     */
    public function collection($data = [])
    {
        $data = collect($data);
        return $data->prepend(['']);
    }
}
